package com.imooc.example.springboot.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author linzou@linkdoc.com
 * @ClassName: HomeResources
 * @Description:
 * @date 2019/1/1 11:17 AM
 */
@RestController
@RequestMapping("/api")
public class HomeResources {


    @GetMapping("/hello")
    public String hello(){
        return "hello world";
    }
}
